package selenium;

import org.testng.Assert;
import org.testng.annotations.Test;
import pages.OnlineOrderPage;
import util.ReportWriter;

/**
 * Created by 1 on 06.04.2014.
 */
public class PositiveOnlineOrder extends TestConditions
{

    @Test
    public void positiveOnlineOrder()
    {
        OnlineOrderPage onlineOrderPage = new OnlineOrderPage(driver);
        onlineOrderPage.openOnlineOrderPage();
        onlineOrderPage.searchProduct();

        onlineOrderPage.onlineOrder();
        Assert.assertTrue(onlineOrderPage.productIsOrdered(), ReportWriter.error("Positive online order is FAILED"));
    }
}
